package book;

public class BookList {
    private Book[] books = new Book[10];
    private int count;

    public BookList(){
        books[0] = new Book("元素共鸣","mhy1",0.1,"study");
        books[1] = new Book("元素转化","mhy2",0.2,"study");
        books[2] = new Book("元素附魔","mhy3",0.3,"study");
        this.count = 3;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

//      获取到pos的书
    public Book getBook(int pos){
        return books[pos];
    }
//    在pos位置添加书
    public void setBook(int pos,Book book){
        books[pos] = book;
    }
//
}
